package com.chenxin.interact.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chenxin.interact.domain.wmsToMes.WmsToMesIn;
import com.chenxin.interact.mapper.WmsToMesInMapper;
import com.chenxin.interact.service.IWmsToMesInService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WmsToMesInServiceImpl implements IWmsToMesInService {
    @Autowired
    private WmsToMesInMapper wmsToMesInMapper;

    @Override
    public WmsToMesIn selectWmsToMesIn() {
        QueryWrapper<WmsToMesIn> wrapper = new QueryWrapper<>();
        wrapper.eq("status", 0).last("limit 1");
        return wmsToMesInMapper.selectOne(wrapper);
    }
}
